Optimal. Leaf size=170 \[ \frac {2 b g \sqrt {\frac {b+a \cos (e+f x)}{a+b}} \Pi \left (2;\frac {1}{2} (e+f x)|\frac {2 a}{a+b}\right ) \sqrt {g \sec (e+f x)}}{d f \sqrt {a+b \sec (e+f x)}}-\frac {2 (b c-a d) g \sqrt {\frac {b+a \cos (e+f x)}{a+b}} \Pi \left (\frac {2 c}{c+d};\frac {1}{2} (e+f x)|\frac {2 a}{a+b}\right ) \sqrt {g \sec (e+f x)}}{d (c+d) f \sqrt {a+b \sec (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.57, antiderivative size = 170, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 5, integrand size = 39, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.128, Rules used = {4056, 3944,
2886, 2884, 4060} \begin {gather*} \frac {2 b g \sqrt {g \sec (e+f x)} \sqrt {\frac {a \cos (e+f x)+b}{a+b}} \Pi \left (2;\frac {1}{2} (e+f x)|\frac {2 a}{a+b}\right )}{d f \sqrt {a+b \sec (e+f x)}}-\frac {2 g (b c-a d) \sqrt {g \sec (e+f x)} \sqrt {\frac {a \cos (e+f x)+b}{a+b}} \Pi \left (\frac {2 c}{c+d};\frac {1}{2} (e+f x)|\frac {2 a}{a+b}\right )}{d f (c+d) \sqrt {a+b \sec (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2884
Rule 2886
Rule 3944
Rule 4056
Rule 4060
Rubi steps
\begin {align*} \int \frac {(g \sec (e+f x))^{3/2} \sqrt {a+b \sec (e+f x)}}{c+d \sec (e+f x)} \, dx &=\frac {b \int \frac {(g \sec (e+f x))^{3/2}}{\sqrt {a+b \sec (e+f x)}} \, dx}{d}-\frac {(b c-a d) \int \frac {(g \sec (e+f x))^{3/2}}{\sqrt {a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx}{d}\\ &=\frac {\left (b g \sqrt {b+a \cos (e+f x)} \sqrt {g \sec (e+f x)}\right ) \int \frac {\sec (e+f x)}{\sqrt {b+a \cos (e+f x)}} \, dx}{d \sqrt {a+b \sec (e+f x)}}-\frac {\left ((b c-a d) g \sqrt {b+a \cos (e+f x)} \sqrt {g \sec (e+f x)}\right ) \int \frac {1}{\sqrt {b+a \cos (e+f x)} (d+c \cos (e+f x))} \, dx}{d \sqrt {a+b \sec (e+f x)}}\\ &=\frac {\left (b g \sqrt {\frac {b+a \cos (e+f x)}{a+b}} \sqrt {g \sec (e+f x)}\right ) \int \frac {\sec (e+f x)}{\sqrt {\frac {b}{a+b}+\frac {a \cos (e+f x)}{a+b}}} \, dx}{d \sqrt {a+b \sec (e+f x)}}-\frac {\left ((b c-a d) g \sqrt {\frac {b+a \cos (e+f x)}{a+b}} \sqrt {g \sec (e+f x)}\right ) \int \frac {1}{\sqrt {\frac {b}{a+b}+\frac {a \cos (e+f x)}{a+b}} (d+c \cos (e+f x))} \, dx}{d \sqrt {a+b \sec (e+f x)}}\\ &=\frac {2 b g \sqrt {\frac {b+a \cos (e+f x)}{a+b}} \Pi \left (2;\frac {1}{2} (e+f x)|\frac {2 a}{a+b}\right ) \sqrt {g \sec (e+f x)}}{d f \sqrt {a+b \sec (e+f x)}}-\frac {2 (b c-a d) g \sqrt {\frac {b+a \cos (e+f x)}{a+b}} \Pi \left (\frac {2 c}{c+d};\frac {1}{2} (e+f x)|\frac {2 a}{a+b}\right ) \sqrt {g \sec (e+f x)}}{d (c+d) f \sqrt {a+b \sec (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 13.48, size = 223, normalized size = 1.31 \begin {gather*} -\frac {2 i g \sqrt {-\frac {a (-1+\cos (e+f x))}{a+b}} \sqrt {\frac {a (1+\cos (e+f x))}{a-b}} \cot (e+f x) \left (\Pi \left (1-\frac {a}{b};i \sinh ^{-1}\left (\sqrt {\frac {1}{a-b}} \sqrt {b+a \cos (e+f x)}\right )|\frac {-a+b}{a+b}\right )-\Pi \left (\frac {(a-b) c}{-b c+a d};i \sinh ^{-1}\left (\sqrt {\frac {1}{a-b}} \sqrt {b+a \cos (e+f x)}\right )|\frac {-a+b}{a+b}\right )\right ) \sqrt {g \sec (e+f x)} \sqrt {a+b \sec (e+f x)}}{\sqrt {\frac {1}{a-b}} d f \sqrt {b+a \cos (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 6.86, size = 481, normalized size = 2.83
method | result | size |
default | \(\frac {2 i \sqrt {\frac {a \cos \left (f x +e \right )+b}{\left (\cos \left (f x +e \right )+1\right ) \left (a +b \right )}}\, \left (\EllipticF \left (\frac {i \left (-1+\cos \left (f x +e \right )\right )}{\sin \left (f x +e \right )}, \sqrt {-\frac {a -b}{a +b}}\right ) a c d +\EllipticF \left (\frac {i \left (-1+\cos \left (f x +e \right )\right )}{\sin \left (f x +e \right )}, \sqrt {-\frac {a -b}{a +b}}\right ) a \,d^{2}-\EllipticF \left (\frac {i \left (-1+\cos \left (f x +e \right )\right )}{\sin \left (f x +e \right )}, \sqrt {-\frac {a -b}{a +b}}\right ) b c d -\EllipticF \left (\frac {i \left (-1+\cos \left (f x +e \right )\right )}{\sin \left (f x +e \right )}, \sqrt {-\frac {a -b}{a +b}}\right ) b \,d^{2}-2 \EllipticPi \left (\frac {i \left (-1+\cos \left (f x +e \right )\right )}{\sin \left (f x +e \right )}, -1, i \sqrt {\frac {a -b}{a +b}}\right ) b \,c^{2}+2 \EllipticPi \left (\frac {i \left (-1+\cos \left (f x +e \right )\right )}{\sin \left (f x +e \right )}, -1, i \sqrt {\frac {a -b}{a +b}}\right ) b \,d^{2}-2 \EllipticPi \left (\frac {i \left (-1+\cos \left (f x +e \right )\right )}{\sin \left (f x +e \right )}, -\frac {c -d}{c +d}, i \sqrt {\frac {a -b}{a +b}}\right ) a c d +2 \EllipticPi \left (\frac {i \left (-1+\cos \left (f x +e \right )\right )}{\sin \left (f x +e \right )}, -\frac {c -d}{c +d}, i \sqrt {\frac {a -b}{a +b}}\right ) b \,c^{2}\right ) \sqrt {\frac {a \cos \left (f x +e \right )+b}{\cos \left (f x +e \right )}}\, \left (-1+\cos \left (f x +e \right )\right ) \left (\frac {g}{\cos \left (f x +e \right )}\right )^{\frac {3}{2}} \left (\cos ^{2}\left (f x +e \right )\right )}{f \left (a \cos \left (f x +e \right )+b \right ) \left (\frac {1}{\cos \left (f x +e \right )+1}\right )^{\frac {3}{2}} \sin \left (f x +e \right )^{2} d \left (c +d \right ) \left (c -d \right )}\) | \(481\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (g \sec {\left (e + f x \right )}\right )^{\frac {3}{2}} \sqrt {a + b \sec {\left (e + f x \right )}}}{c + d \sec {\left (e + f x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\sqrt {a+\frac {b}{\cos \left (e+f\,x\right )}}\,{\left (\frac {g}{\cos \left (e+f\,x\right )}\right )}^{3/2}}{c+\frac {d}{\cos \left (e+f\,x\right )}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________